import request from '@/utils/request'

// 查询审计日志记录列表
export function list(query) {
  return request({
    url: '/monitor/auditLog/list',
    method: 'get',
    params: query
  })
}

// 查询审计日志记录详细
export function getLog(operId) {
  return request({
    url: '/monitor/auditLog/' + operId,
    method: 'get'
  })
}

// 新增审计日志记录
export function addLog(data) {
  return request({
    url: '/monitor/auditLog',
    method: 'post',
    data: data
  })
}

// 修改审计日志记录
export function updateLog(data) {
  return request({
    url: '/monitor/auditLog',
    method: 'put',
    data: data
  })
}

// 删除审计日志记录
export function delOperlog(operId) {
  return request({
    url: '/monitor/auditLog/' + operId,
    method: 'delete'
  })
}
